package com.zf.yichat.vo;

/**
 *
 */
public enum PacketSaleType {


    NORMAL(0), OLD_USER(1),NULL(null);

    PacketSaleType(Integer val) {
        this.val = val;
    }

    private Integer val;

    public Integer getVal() {
        return val;
    }

    public void setVal(Integer val) {
        this.val = val;
    }

    public static PacketSaleType valOf(Integer val) {

        if (val == null) {
            return NULL;
        }
        for (PacketSaleType type : PacketSaleType.values()) {

            if (type.getVal() == val) {
                return type;
            }
        }

        return NULL;
    }
}
